<?php

/*
 * 商品模型
 * @author turtle
 * create_time 2017-01-04
 */

namespace App\Admin\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
use Intervention\Image\Constraint;
use Intervention\Image\Facades\Image;
use Illuminate\Support\Facades\Storage;

class users extends Model {

public $timestamps = false;
protected $table = 'mini_user';

     /*
     * 用户
     * @author sky
     * create_time 2017-03-26
     */
    public static function addusers($arr){
        users::insert($arr);
    }
    // 用户列表
    public static function usersList(){
    	return users::get();
    }
    // 用户详情
    public static function usersDetail($usersid){
        return users::where("id", $usersid)->get();
    }
     // 删除用户
    public static function usersDeleted($usersid){
    	return users::where("id", $usersid)->delete();
    }
     // 修改用户
    public static function usersUpdate($usersid,$arr){
        return users::where('id',$usersid)->update($arr);
    }
}
